package xiaoqi.springboot.boot.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import xiaoqi.springboot.boot.dataobject.UserDO;
import xiaoqi.springboot.boot.service.UserService;

@RestController
@RequestMapping("/user")
public class UserController {

    @Autowired
    private UserService userService;


    @GetMapping("/get")
    public UserDO get(@RequestParam("id") Integer id) {
        return userService.get(id);
    }

}
